<?php

/**
 * phptxtdb.php - Initializes the PHP Text DB API (a flat file database
 * supporting SQL)
 *
 * @author Toby Miller <tobius.miller@gmail.com>
 * @copyright 2008 Toby Miller <tobius.miller@gmail.com>
 * @license http://opensource.org/licenses/mit-license.php MIT License
 */

if (!defined('API_HOME_DIR')){
	$API_HOME_DIR = $GLOBALS['Frameworky']::get_config('lib_dir') . '/phptxtdb/';
	$DB_DIR = $GLOBALS['Frameworky']::get_config('data_dir') . '/';
	define('API_HOME_DIR' ,$API_HOME_DIR);
	define('DB_DIR' ,$DB_DIR);
	require_once(API_HOME_DIR . 'resultset.php');
	require_once(API_HOME_DIR . 'database.php');
}

?>
